<div class="post">
	<span>标题:</span><?php echo  $blog['Blog']['title'];?>
	
	<div class = "postInf">
		<div class="left">
			<span>作者:<?php echo $blog['Blog']['uid'];?></span>
			<span>时间:<?php echo $blog['Blog']['dateline'];?></span>
			<span>访问数量:<?php echo $blog['Blog']['views'];?></span><br>
			<span>标签：</span>
			<?php $tags = split(" ",$blog['Blog']['keywords']);?>
			<?php foreach($tags as $tag):?>
			<?php echo $tag;?>&nbsp;&nbsp;
			<?php endforeach;?>
		</div>
	</div>
	
	<blockquote class="text"><span>内容:</span><?php echo $blog['Blog']['content'];?></blockquote>
	<div class="tocomment"><a href="javascript:void(0)">评论</a></div>
	<?php foreach($blog['Comment'] as $comment):?>
	
		<div><?php echo ($comment['content']);?>&nbsp;&nbsp;<label class="tocomment"><a href="javascript:void(0)">回复</a></label></div>
		<?php 
		foreach($blog['Reply'] as $replies){
			if($replies['comment_id']==$comment['id']){
			echo '<div>回复的内容'.$replies['content'].'</div>';
			}
		}
		?>

	<?php endforeach; ?>

<?php
echo $this->Form->create('Comment',array('action'=>'add_comment'));

echo $this->Form->input('content');
echo $this->Form->input('author');
echo $this->Form->input('dateline');
echo $this->Form->hidden('blog_id',array('value'=>$blog['Blog']['id']));
echo $this->Form->end('Save comment');
?>
<?php
echo $this->Form->create('Reply',array('action'=>'add_reply'));

echo $this->Form->input('content');
echo $this->Form->input('author');
echo $this->Form->input('dateline');
echo $this->Form->hidden('blog_id',array('value'=>$blog['Blog']['id']));
echo $this->Form->hidden('comment_id',array('value'=>1));
echo $this->Form->end('Save reply');
?>


</div>

